Repository navigation
Conversation
| **fmpq** -- rational numbers | ||
| =============================================================================== | ||
|
|
||
| Harmonic numbers |
There was a problem hiding this comment.
Similar to previous PR there should be some docs for fmpq itself before jumping into special topics.
There was a problem hiding this comment.
Added a construction and arithmetic section before harmonic numbers in 71ce29c. It covers reduced fractions, integer and fraction-string construction, numerator/denominator access, and exact arithmetic.
|
I don't know who you are but you seem like a bot and I'm not interested in interacting with bots so closing. |
|
Hi Oscar, I’m a real person and I’ve reviewed both contributions. I’m happy to discuss the mathematics and address your feedback directly. I’d like to continue contributing to python-flint. Would you be open to continuing the conversation? |
|
Okay I'm sorry I said that you seem like a bot. I've reopened this but some ground rules:
The docs you are writing are too formal. We really need basic docs for python-flint to show how to use it with code examples rather than formal mathematical statements about the algorithms. |
The
fmpqpage currently provides only an API reference. Introduce exact rational numbers, canonical numerator and denominator, construction from integers and fraction strings, and basic arithmetic with worked values.Then define ordinary and generalized harmonic numbers, including their domains and the empty sum. Explain the exact recurrence recommended in the discussion of #265, with a worked prefix through
H_{4,2} = 205/144.Derive the Hurwitz-zeta identity for integer
m > 1by splitting its convergent defining series, cite DLMF 25.11.4, and explain the poles atm = 1. Distinguish real-ball evaluation witharb.zetafrom the exact rational recurrence.Related to #265; this documents existing arithmetic rather than adding a generalized harmonic-number API or caching.
Validation:
gr_ctx.factor. Neither is a clean strict build. The introduction adds no warning. Earlier baseline and render logs remain preserved.-b html -W --keep-going -E -a, Python 3.12.3, Sphinx 9.1.1 and Furo 2025.12.19. Autodoc imported the published python-flint 0.9.0 package; the native checkout was not rebuilt.